home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gtpoem, gppoem, gtbio, gpbio, gcurrentnumber, gblenddraw, gbiophotonumber, gbiophoto, greq, gphoto
- if gphoto = 0 then
- makepuppet(35, "DUMMY")
- makepuppet(36, "DUMMY")
- makepuppet(37, "DUMMY")
- updateStage()
- puppetPalette(the number of cast string(getphoto("P")) - 1)
- makepuppet(36, getphoto("P"), 100, getphoto("H"), getphoto("V"), 0)
- if greq = "E" then
- makepuppet(37, getphoto("EE"), 100, getphoto("EEH"), getphoto("EEV"))
- else
- makepuppet(37, getphoto("E"), 100, getphoto("EH"), getphoto("EV"))
- end if
- set gphoto to 1
- go(the frame + 1)
- end if
- end
-
- on exitFrame
- go(the frame)
- end
-
- on mouseDown
- global galreadyshownbutton, greqcode, greqsprite, greq, gblend.47, gblend.46, gppoem, gcurrentnumber
- if soundBusy(2) then
- sound stop 2
- set gpleasespeak to EMPTY
- else
- nothing()
- end if
- set greqcode to 0
- set greqsprite to clickOn()
- if (greqsprite = 15) or (greqsprite = 16) then
- repeat while stillDown()
- if galreadyshownbutton then
- if getaProp(gppoem, gcurrentnumber + 1) = EMPTY then
- set gblend.47 to 0
- else
- set gblend.47 to 100
- end if
- if (getpoemname(gtpoem, gcurrentnumber, 5) = EMPTY) and (greqsprite = 6) then
- set gblend.46 to 0
- else
- set gblend.46 to 100
- end if
- showfloat(greqsprite)
- set galreadyshownbutton to 0
- end if
- end repeat
- if rollOver(45) then
- set greqcode to 45
- else
- if rollOver(46) then
- set greqcode to 46
- else
- if rollOver(47) then
- set greqcode to 47
- end if
- end if
- end if
- else
- nothing()
- end if
- end
-
- on mouseUp
- global greqcode, greqsprite, gextension, gpleasespeak, gtpoem, gcurrentnumber, greq
- if greqcode <> 0 then
- set the castNum of sprite greqcode to cast ("H-CLOSE" & string(gextension))
- updateStage()
- waitticks(15)
- set the castNum of sprite greqcode to cast ("OPEN" & string(gextension))
- updateStage()
- waitticks(15)
- if (greqcode = 45) and (greqsprite = 15) then
- sound playFile 2, getpoemname(gtpoem, gcurrentnumber, 1, "N")
- set greqcode to 0
- set greqsprite to 0
- end if
- if (greqcode = 45) and (greqsprite = 16) then
- sound playFile 2, getpoemname(gtpoem, gcurrentnumber, 2, "N")
- set greqcode to 0
- set greqsprite to 0
- end if
- if (greqcode = 46) and (greqsprite = 15) then
- hidefloat()
- set greq to "J"
- set greqcode to 0
- set greqsprite to 0
- makepuppet(35, "DUMMY")
- makepuppet(36, "DUMMY")
- makepuppet(37, "DUMMY")
- updateStage()
- puppetPalette(0)
- outcursor()
- outbio()
- go("EX")
- end if
- if (greqcode = 46) and (greqsprite = 16) and (getpoemname(gtpoem, gcurrentnumber, 5) <> EMPTY) then
- hidefloat()
- set greq to "E"
- set greqcode to 0
- set greqsprite to 0
- makepuppet(35, "DUMMY")
- makepuppet(36, "DUMMY")
- makepuppet(37, "DUMMY")
- updateStage()
- puppetPalette(0)
- outcursor()
- outbio()
- go("EX")
- end if
- if (greqcode = 47) and (greqsprite = 15) then
- hidefloat()
- if getaProp(gppoem, gcurrentnumber + 1) = EMPTY then
- nothing()
- else
- set greq to "J"
- killpuppet(2)
- set greqcode to 0
- set greqsprite to 0
- outcursor()
- go("PHOTO")
- end if
- end if
- if (greqcode = 47) and (greqsprite = 16) then
- hidefloat()
- if getaProp(gppoem, gcurrentnumber + 1) = EMPTY then
- nothing()
- else
- set greq to "E"
- killpuppet(2)
- set greqcode to 0
- set greqsprite to 0
- outcursor()
- go("PHOTO")
- end if
- end if
- else
- hidefloat()
- set the blend of sprite 2 to 100
- puppetPalette(0)
- makepuppet(35, "DUMMY")
- makepuppet(36, "DUMMY")
- makepuppet(37, "DUMMY")
- go(the frame + 2)
- go("NEW")
- end if
- hidefloat()
- end
-